/**
 * @project_name staff_vehicle
 * @package_name com.ssh.web.admin
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-27
 * @time 下午10:44:36
 */
package com.ssh.web.admin;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.entity.InnerVehicle;
import com.ssh.ser.admin.VehicleManageSerI;

/**
 * @author jack
 * @desc
 */
public class DeleteVehicleAction extends ActionSupport{

	/**
	 * TODO
	 */
	private static final long serialVersionUID = 1L;
	private String state;
	private String type;
	private String vehicleId;
	private String vehicleLevel;
	private String vehiclePicture;
	private VehicleManageSerI vehicleManageSerI;


	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		System.out.println("hello world"+vehicleId);
		try {
			InnerVehicle innerVehicle = new InnerVehicle();
			innerVehicle.setVehicleId(vehicleId);
			vehicleManageSerI.deleteVehicle(innerVehicle);
		} catch (Exception e) {
			return "error";
		}
		return "ok";
	}


	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}


	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}


	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}


	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}


	/**
	 * @return the vehicleId
	 */
	public String getVehicleId() {
		return vehicleId;
	}


	/**
	 * @param vehicleId the vehicleId to set
	 */
	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}


	/**
	 * @return the vehicleLevel
	 */
	public String getVehicleLevel() {
		return vehicleLevel;
	}


	/**
	 * @param vehicleLevel the vehicleLevel to set
	 */
	public void setVehicleLevel(String vehicleLevel) {
		this.vehicleLevel = vehicleLevel;
	}


	/**
	 * @return the vehiclePicture
	 */
	public String getVehiclePicture() {
		return vehiclePicture;
	}


	/**
	 * @param vehiclePicture the vehiclePicture to set
	 */
	public void setVehiclePicture(String vehiclePicture) {
		this.vehiclePicture = vehiclePicture;
	}


	/**
	 * @return the vehicleManageSerI
	 */
	public VehicleManageSerI getVehicleManageSerI() {
		return vehicleManageSerI;
	}


	/**
	 * @param vehicleManageSerI the vehicleManageSerI to set
	 */
	public void setVehicleManageSerI(VehicleManageSerI vehicleManageSerI) {
		this.vehicleManageSerI = vehicleManageSerI;
	}


}
